package com.jiang.common.exception;

import lombok.Data;

@Data
public class NoStockException extends RuntimeException {
    private Long skuId;

    public NoStockException(Long skuId) {
        super("spuId=" + skuId + ";没有足够库存");
    }
    public NoStockException() {
        super("某件商品没有足够库存，订单提交失败！");
    }
}
